{extend name="./oscshop/admin/view/public/base.html" /}
{block name="content"}
<div class="page-header">
	<h1>	
		移动端
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			{$breadcrumb1}
		</small>
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			代理审核
		</small>
	</h1>
</div>
<div class="row">
	<div class="col-xs-12">	
		<form class="form-horizontal"  id="validation-form" method="post" action='{:url("AgentBackend/pass")}'>
			

			
			<?php if(!isset($apply)){ ?>			
			
			<input name="aa_id" type="hidden" value="{$Request.param.id}" />
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left">用户</label>
				<div class="col-sm-10">
					<div class="clearfix">
						<label class="radio-inline">
						{$agent.username}
						</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left">真实姓名</label>
				<div class="col-sm-10">
					<div class="clearfix">
						<label class="radio-inline">
							{:get_id_card_name($agent.uid)}
						</label>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left">代理城市 </label>
				<div class="col-sm-10">
					<div class="clearfix">
						<label class="radio-inline">
						{$agent.province}{$agent.city}{$agent.country}
						</label>
					</div>
				</div>
			</div>
			<div class="space-4"></div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left">区域的身份证前6位 </label>
			<div class="col-sm-10">
				<div class="clearfix">
					<label class="radio-inline">
					<input type="text" class="form-control" name="id6" value="{$agent.id6}" placeholder="请输入代理区域身份证的前6位" aria-describedby="basic-addon1">
                    </label>
				</div>
			</div>
			</div>
			<div class="space-4"></div>

			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left"> 审核</label>
			<div class="col-sm-10">
				<div class="clearfix">
					<label class="radio-inline">
						<input name="status" type="radio" value="1" /> 通过
					</label>
					<label class="radio-inline">
						<input name="status" type="radio" value="2"  /> 拒绝
					</label>
				</div>
			</div>
			
			</div>
			<div class="space-4"></div>
			<?php } ?>
			
			<div class="form-group">
				<label class="col-sm-2 control-label no-padding-left"> 未通过原因</label>
			<div class="col-sm-10">
				<div class="clearfix">
					<textarea class="form-control" rows="5" name="answer">{$apply.answer|default=''}</textarea>
				</div>
			</div>
			</div>
			<div class="space-4"></div>
			<?php if(!isset($apply)){ ?>
			<div class="form-group">
				<label class="col-sm-1 control-label no-padding-left"> </label>	
				<div class="col-sm-11">
					<input name="send" type="submit" value="提交" class="btn btn-primary" />
				</div>
			</div>
			<?php } ?>
		</form>
	</div>
</div>
{/block}
